import {
    StatusBar,
    Dimensions,
    PixelRatio,
    ToastAndroid
} from 'react-native';

global.SCREEN_WIDTH = Dimensions.get('screen').width;
global.SCREEN_HEIGHT = Dimensions.get('screen').height;
global.SCREEN_SCALE = Dimensions.get('screen').scale;

global.STATUS_BAR_HEIGHT = StatusBar.currentHeight; // Android only

global.PX_1 = 1 / PixelRatio.get(); // 对应 1 设备像素

global.showToast = (message) => {
    ToastAndroid.show(message, ToastAndroid.SHORT);
}
